import {request} from "@/network/request";

export function getTotalData(){
    return request({
        url: '/admin/dashboard/total',
        method: 'get'
    })
}
//获取指定类型数量订单
export function getOrderSimpleLimit(orderby,size){
    return request({
        url: '/admin/dashboard/orderSimpleBySize',
        method: 'get',
        params:{orderby,size}
    })
}
export function getSaleLast7(){
    return request({
        url: '/admin/dashboard/saleLast7',
        method: 'get',
    })
}
export function getRoomRemain(){
    return request({
        url: '/admin/dashboard/countRoomRemain',
        method: 'get',
    })
}
export function getRemainRoom(){
    return request({
        url: '/admin/dashboard/remainRoom',
        method: 'get',
    })
}